//
//  UIViewController+Init.h
//  ReplyAssistant
//
//  Created by Leo on 2018/11/24.
//  Copyright © 2018 KK. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIViewController (Init)
+ (instancetype)viewControllerFromSB;
+ (instancetype)viewControllerFromSB:(NSString*)name;
+ (instancetype)viewControllerFromSB:(NSString *)name identifier:(NSString*)identifier;
@end

@interface UIViewController (NavigationItem)

//  设置右边导航栏item的事件
- (void)setRightBarButtonItemWithTitle:(NSString*)title style:(UIBarButtonItemStyle)style target:(id)target action:(SEL)action;

- (void)setRightBarButtonItemWithImageName:(NSString*)imageName style:(UIBarButtonItemStyle)style target:(id)target action:(SEL)action;

//  设置左边导航栏item的事件
- (void)setLeftBarButtonItemWithTitle:(NSString*)title style:(UIBarButtonItemStyle)style target:(id)target action:(SEL)action;

- (void)setLeftBarButtonItemWithImageName:(NSString*)imageName style:(UIBarButtonItemStyle)style target:(id)target action:(SEL)action;

@end

NS_ASSUME_NONNULL_END
